package com.melody.service;

import com.melody.entry.MusicCount;
import com.melody.entry.MusicInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.melody.model.vo.MusicDetailsVo;

import java.util.List;
import java.util.Map;

/**
* @author zxz
* @description 针对表【music_info(歌曲信息表)】的数据库操作Service
* @createDate 2025-05-09 10:31:17
*/
public interface MusicInfoService extends IService<MusicInfo> {

    List<MusicInfo> getMusicsByListId(List<Integer> musicids);



    /*通过id查询音乐信息*/
    public MusicDetailsVo findMusicById(Integer musicId);

    /*随机查询首歌曲，给前端展示*/
    /*public List<MusicInfo> findRandMusic();*/
    public List<MusicDetailsVo> findRandMusic(Integer limit);

    public String insertOneMusic(MusicInfo musicInfo);

    public List<MusicInfo> insertManyMusic(List<MusicInfo> musicInfoList);

    public MusicInfo updateMusicById(MusicInfo musicInfo);

    public MusicInfo deleteMusicById(Integer musicId);

    List<MusicInfo> getMusicsByLabelId(int labelId);

    public List<MusicInfo> getMusicsByClickCountDesc();
}
